package com.qf.job;

import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.springframework.stereotype.Component;

/**
 * 任务业务方法
 * @author 千锋健哥
 */
@Component
public class MyJob implements SimpleJob {

    @Override
    public void execute(ShardingContext shardingContext) {
        //todo 调用service执行业务
        System.out.println("===========定时任务执行了一次=============");
    }

}
